﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common_Code.Math_Extensions
{
    public class SecantMethod : NumericalAnalysis<double>
    {
        private Equation equat;

        public SecantMethod()
        {

        }

        public SecantMethod(Equation equat)
        {
            this.equat = equat;
        }

        public double evaluateAt(double val)
        {
            throw new NotImplementedException();
        }

        public double evaluateAt(double val, int numCycles)
        {
            throw new NotImplementedException();
        }

        public double evaluateAt(double val, double error)
        {
            throw new NotImplementedException();
        }
        
        public void setEquation(Equation equat)
        {
            this.equat = equat;
        }

        public Equation getEquation()
        {
            if (equat != null)
            {
                return equat;
            }
            else
            {
                throw new NotSupportedException("There is no equation");
            }
        }
    }
}
